export class ListView extends React.Component {
    render(){
        let ele=[];
        this.props.dataSource.map(item=>{
           ele.push(React.cloneElement(this.props.children, {dataSource:item}));
           //console.log(item);
        })

        return (
            <div className={"listview "+this.props.css} style={this.props.style}>
                <div className="box">
                    {ele}
                </div>
            </div>
        )
    }
}
